From: | Dariusz Gac |
Date: | 11 Sep 2001 at 09:54:55 |
Subject: | [D5] Re: SCopy and Magellan |
Hello Neil,
Zauwa¿y³em, Neil, ¿e napisa³e¶:
> Dariusz Gac said,
>> If I make a menu/button using Scopy AmigaDOS command to copy
>> folders and files with-in then only all files are copied to
>> destination lister but not folders' name.
>>
>> But if I make the same from CLI window as AmigaDOS command then
>> folders'
>> names and files with-in are copied properly.
>> C:SCopy FROM {F} TO {d} ALL WINDOW CLONE
> Could it be that Opus is adding the trailing slash to the path and
> this is causing SCopy to act differently?
That is the question... :)
> The first thing to check is that DOpus is executing exactly the same
> command as you are in the shell.
Shell output example:
11.Ram Disk:> SCopy from RAM:ENV/Aweb3 to Ram:t/ all window
browser..........copied.
program..........copied.
gui..........copied.
network..........copied.
nocookie..........copied.
window..........copied.
LastPage.cfg..........copied.
Amigactive (dir) [created]
browser..........copied.
browser.HelvLarge..........copied.
browser.HelvSmall..........copied.
browser.TimesLarge..........copied.
browser.TimesSmall..........copied.
gui..........copied.
network..........copied.
program..........copied.
settings..........copied.
window..........copied.
As you can see AmigaActive directory is copied properly...
Below there is output of Opus:
Command 0-T1 as follows:
cd "RAM:ENV/"
stack 64000
SCopy "RAM:ENV/AWeb3/browser" "RAM:ENV/AWeb3/program" "RAM:ENV/AWeb3/gui" "RAM:ENV/AWeb3/network" "RAM:ENV/AWeb3/nocookie" "RAM:ENV/AWeb3/window" "RAM:ENV/AWeb3/LastPage.cfg" "RAM:ENV/AWeb3/Amigactive/browser" "RAM:ENV/AWeb3/Amigactive/browser.HelvLarge" "RAM:ENV/AWeb3/Amigactive/browser.HelvSmall" "RAM:ENV/AWeb3/Amigactive/browser.TimesLarge" "RAM:ENV/AWeb3/Amigactive/browser.TimesSmall" "RAM:ENV/AWeb3/Amigactive/gui" "RAM:ENV/AWeb3/Amigactive/network" TO "RAM:T/" WINDOW ALL
SCopy "RAM:ENV/AWeb3/Amigactive/program" "RAM:ENV/AWeb3/Amigactive/settings" "RAM:ENV/AWeb3/Amigactive/window" TO "RAM:T/" WINDOW ALL
echo ""
echo "Click close button to continue..." noline
and Opus' window output:
browser..........copied.
program..........copied.
gui..........copied.
network..........copied.
nocookie..........copied.
window..........copied.
LastPage.cfg..........copied.
browser..........copied.
browser.HelvLarge..........copied.
browser.HelvSmall..........copied.
browser.TimesLarge..........copied.
browser.TimesSmall..........copied.
gui..........copied.
network..........copied.
program..........copied.
settings..........copied.
window..........copied.
..
As you can see in Magellan, opposite to shell sequence, AmigaActive folder
is not created but files from this folder are copied....
> Select "Output to window" and "Window close button" in the function
> definition, to prevent it completing before you want it to
> (alternatively add AmigaDOS: Wait 60"), and check the temporary
> script that Opus creates in T:. Is Opus executing exactly the
> command you want it to?
I think so... :)
>> Flag: Recursive dirs on
> Do you need this? Surely SCopy is only expecting the name of the
> source directory, not all the paths beneath it as well.
It makes no difference if this flag is on or off... result is the
same here....
Copyright (c) by Darek A.D. 2001